package com.tedu.bill.demo7;

/**
 * Author：毕龙
 * Date: 2024/5/7 19:13
 */
public class School2 {
    public void assign(int n){
        if(n % 2 == 0){
            Teacher t1 = course->System.out.println("教"+course+"课程");
            t1.teach("java");
        }else{
            Teacher t1 = course->System.out.println("教"+course+"课程");
            t1.teach("oracle");
        }
    }
}
